package com.example.demo.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Project Name: cloud-learn
 * File Name: HelloController
 * Package Name: com.example.demo
 * Date: 2018/7/27  16:27
 * Copyright (c) 2018, tianyul All Rights Reserved.
 */
@RestController
public class HelloController {

    @PostMapping("/test")
    public void test() {
        try {
            Thread.sleep(3000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("hello");
    }

    @PostMapping("/test2")
    public void test2() {
        try {
            Thread.sleep(5000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("hello");
    }
}
